{php}
    if(\think\Hook::get('adminEditor') && MODULE_NAME == 'Admin'){
{/php}  
    {:hook('adminEditor', array('id'=>$id,'value'=>$default))}
{php}
    }elseif(\think\Hook::get('editor')){
{/php}
    {:hook('editor', array('id'=>$id,'value'=>$default))}
{php}
    }else{
{/php}
<script type="text/plain" name="{$name}" id="{$id}" style="{$style};">{$default}</script>

<script type="text/javascript" charset="utf-8" src="__COMMON__/lib/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__COMMON__/lib/ueditor/ueditor.all.min.js"></script>
<script>
    var  ue_{$id};
    $(function () {
        var config = {$config};
        ue_{$id} = UE.getEditor('{$id}', config);
    });
</script>
{php}
    }
{/php}